﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GHRMS.DAL;

namespace KPIS.GERP.GHRMS.BLL
{
    public class ActivityTypeBLL
    {
        ConvertNullable cn = new ConvertNullable();
        private static readonly ActivityTypeDAL dal = new ActivityTypeDAL();

        public DataSet GetDataAcType(string act_type_seq)
        {
            Nullable<int> iact_type_seq = cn.ConvertNullInt(act_type_seq);
            return dal.GetDataActType(iact_type_seq);
        }
        public void Insert(string act_type_descr, string remark, string created_by)
        {
            int icreated_by = Convert.ToInt32(created_by);
            dal.Insert(act_type_descr, remark, icreated_by);
        }
        public void Update(string act_type_seq, string act_type_descr, string remark, string updated_by)
        {
            int iact_type_seq = Convert.ToInt32(act_type_seq);
            int iupdated_by = Convert.ToInt32(updated_by);
            dal.Update(iact_type_seq, act_type_descr, remark, iupdated_by);
        }
        public void Delete(string act_type_seq, string updated_by)
        {
            int iact_type_seq = Convert.ToInt32(act_type_seq);
            int iupdated_by = Convert.ToInt32(updated_by);
            dal.Delete(iact_type_seq, iupdated_by);
        }
    }
}
